package com.hsgene.user.dto.history;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;
import com.hsgene.goods.dto.SimpleGoodsDto;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户收货地址
 *
 * @author wangbing
 * @version 1.0, 2018/8/27
 */
public class GoodsBrowseHistoryDto implements Serializable {

    /**
     * 表主键id
     */
    private String id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 商品信息
     */
    private SimpleGoodsDto simpleGoodsDto;

    /**
     * 是否删除
     */
    private Boolean available;

    /**
     * 浏览时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public SimpleGoodsDto getSimpleGoodsDto() {
        return simpleGoodsDto;
    }

    public void setSimpleGoodsDto(SimpleGoodsDto simpleGoodsDto) {
        this.simpleGoodsDto = simpleGoodsDto;
    }

    public Boolean getAvailable() {
        return available;
    }

    public void setAvailable(Boolean available) {
        this.available = available;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
